package vista;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;

import controlador.Controlador;
import modelo.dao.DAO;

public class FrameModSalon extends JFrame {

	private JPanel contentPane;

	/**
	 * Launch the application.
	 */
	public static void main(final DAO d, final Controlador c,final JPanel p) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					FrameModSalon frame = new FrameModSalon(d, c,p);
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 * @param panel 
	 */
	public FrameModSalon(DAO d, Controlador c, JPanel p) {
		setResizable(false);
		setAlwaysOnTop(true);
		setDefaultCloseOperation(DISPOSE_ON_CLOSE); 
		setBounds(100, 100, 450, 300);
		contentPane = new PanelModSalon(d, c,p);
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		contentPane.setLayout(new BorderLayout(0, 0));
		setContentPane(contentPane);
	}

}
